<?php

namespace DependencyInjection;

class Connection
{

    // 配置对象
    protected $configuration;

    public function __construct(Parameters $config)
    {
        $this->configuration = $config;
    }

    public function connect()
    {
        $host = $this->configuration->get('host');
        return $host;
    }

}